﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F87 RID: 3975
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicUnitComposeScRsp : IMessage<RogueMagicUnitComposeScRsp>, IMessage, IEquatable<RogueMagicUnitComposeScRsp>, IDeepCloneable<RogueMagicUnitComposeScRsp>, IBufferMessage
	{
		// Token: 0x17003261 RID: 12897
		// (get) Token: 0x0600B20F RID: 45583 RVA: 0x001E11B4 File Offset: 0x001DF3B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicUnitComposeScRsp> Parser
		{
			get
			{
				return RogueMagicUnitComposeScRsp._parser;
			}
		}

		// Token: 0x17003262 RID: 12898
		// (get) Token: 0x0600B210 RID: 45584 RVA: 0x001E11BB File Offset: 0x001DF3BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicUnitComposeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003263 RID: 12899
		// (get) Token: 0x0600B211 RID: 45585 RVA: 0x001E11CD File Offset: 0x001DF3CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicUnitComposeScRsp.Descriptor;
			}
		}

		// Token: 0x0600B212 RID: 45586 RVA: 0x001E11D4 File Offset: 0x001DF3D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitComposeScRsp()
		{
		}

		// Token: 0x0600B213 RID: 45587 RVA: 0x001E11DC File Offset: 0x001DF3DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitComposeScRsp(RogueMagicUnitComposeScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B214 RID: 45588 RVA: 0x001E1201 File Offset: 0x001DF401
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitComposeScRsp Clone()
		{
			return new RogueMagicUnitComposeScRsp(this);
		}

		// Token: 0x17003264 RID: 12900
		// (get) Token: 0x0600B215 RID: 45589 RVA: 0x001E1209 File Offset: 0x001DF409
		// (set) Token: 0x0600B216 RID: 45590 RVA: 0x001E1211 File Offset: 0x001DF411
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600B217 RID: 45591 RVA: 0x001E121A File Offset: 0x001DF41A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicUnitComposeScRsp);
		}

		// Token: 0x0600B218 RID: 45592 RVA: 0x001E1228 File Offset: 0x001DF428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicUnitComposeScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B219 RID: 45593 RVA: 0x001E1258 File Offset: 0x001DF458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B21A RID: 45594 RVA: 0x001E1297 File Offset: 0x001DF497
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B21B RID: 45595 RVA: 0x001E129F File Offset: 0x001DF49F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B21C RID: 45596 RVA: 0x001E12A8 File Offset: 0x001DF4A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B21D RID: 45597 RVA: 0x001E12DC File Offset: 0x001DF4DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B21E RID: 45598 RVA: 0x001E131A File Offset: 0x001DF51A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicUnitComposeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B21F RID: 45599 RVA: 0x001E134B File Offset: 0x001DF54B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B220 RID: 45600 RVA: 0x001E1354 File Offset: 0x001DF554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400480A RID: 18442
		private static readonly MessageParser<RogueMagicUnitComposeScRsp> _parser = new MessageParser<RogueMagicUnitComposeScRsp>(() => new RogueMagicUnitComposeScRsp());

		// Token: 0x0400480B RID: 18443
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400480C RID: 18444
		public const int RetcodeFieldNumber = 9;

		// Token: 0x0400480D RID: 18445
		private uint retcode_;
	}
}
